package com.ruoyi.binance.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 模拟交易订单对象 binance_simulate_order
 * 
 * @author zq
 * @date 2025-09-22
 */
public class BinanceSimulateOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderId;

    /** 代码 */
    @Excel(name = "代码")
    private String code;

    /** 订单方向：BUY-买入，SELL-卖出 */
    @Excel(name = "订单方向：BUY-买入，SELL-卖出")
    private String side;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 下单数量 */
    @Excel(name = "下单数量")
    private BigDecimal quantity;

    /** 下单USDT */
    @Excel(name = "下单USDT")
    private BigDecimal quoteOrderQty;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date transactTime;

    /** 订单状态 字典：order_status */
    @Excel(name = "订单状态 字典：order_status")
    private String status;

    /** 模拟配置ID */
    private Long configId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setSide(String side) 
    {
        this.side = side;
    }

    public String getSide() 
    {
        return side;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }

    public void setQuoteOrderQty(BigDecimal quoteOrderQty) 
    {
        this.quoteOrderQty = quoteOrderQty;
    }

    public BigDecimal getQuoteOrderQty() 
    {
        return quoteOrderQty;
    }

    public void setTransactTime(Date transactTime) 
    {
        this.transactTime = transactTime;
    }

    public Date getTransactTime() 
    {
        return transactTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("code", getCode())
            .append("side", getSide())
            .append("price", getPrice())
            .append("quantity", getQuantity())
            .append("quoteOrderQty", getQuoteOrderQty())
            .append("transactTime", getTransactTime())
            .append("status", getStatus())
            .append("configId", getConfigId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
